package com.dianping.cat.home.alert.summary.entity;

import com.dianping.cat.home.alert.summary.BaseEntity;
import com.dianping.cat.home.alert.summary.IVisitor;
import java.util.ArrayList;
import java.util.List;




public class Category
  extends BaseEntity<Category>
{
  private String m_name;
/* 15 */   private List<Alert> m_alerts = new ArrayList();





/* 21 */   public Category(String name) { this.m_name = name; }




/* 26 */   public void accept(IVisitor visitor) { visitor.visitCategory(this); }


  public Category addAlert(Alert alert) {
/* 30 */     this.m_alerts.add(alert);
/* 31 */     return this;
  }


  public boolean equals(Object obj) {
/* 36 */     if (obj instanceof Category) {
/* 37 */       Category _o = (Category)obj;

/* 39 */       if (!equals(getName(), _o.getName())) {
/* 40 */         return false;
      }

/* 43 */       return true;
    }

/* 46 */     return false;
  }


/* 50 */   public List<Alert> getAlerts() { return this.m_alerts; }



/* 54 */   public String getName() { return this.m_name; }



  public int hashCode() {
/* 59 */     int hash = 0;

/* 61 */     return hash * 31 + ((this.m_name == null) ? 0 : this.m_name.hashCode());
  }





/* 68 */   public void mergeAttributes(Category other) { assertAttributeEquals(other, "category", "name", this.m_name, other.getName()); }



  public Category setName(String name) {
/* 73 */     this.m_name = name;
/* 74 */     return this;
  }

  public Category() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/alert/summary/entity/Category.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */